<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml">

	<ui:define name="body">
		
		<table border="0" width="100%">
		<tr>
			<td>
				<p:fieldset legend="#{messages['login.label']}">
				<h:form>
					<h:panelGrid columns="2">
						<h:outputLabel for="username" value="#{messages['login.username']}" />
						<h:inputText id="username" value="#{credentials.username}" />
	
						<h:outputLabel for="password" value="#{messages['login.password']}" />
						<h:inputSecret id="password" value="#{credentials.password}" />
						
						<p:spacer />					
						<p:spacer />
						<h:commandButton value="#{messages['login.dologin']}" action="#{securityContext.login}" >
							<f:param name="fwd" value="#{param.fwd}" />
						</h:commandButton>
					</h:panelGrid>
				</h:form>
				</p:fieldset>
			</td>			
		</tr>		
		</table>
		
	</ui:define>

</ui:composition>